class BaseResult {

  constructor(code, message){
    this.code = code,
    this.message = message
  }

  static SUCCESS = new BaseResult(200, 'success');
  static FAILED = new BaseResult(101, 'error');
  static ERROE = new BaseResult(500, 'newtwork error');
  static UNAUTHORIZED = new BaseResult(401, 'unauthorized');
  static FORBIDDEN = new BaseResult(403, 'forbidden');
  static PARAMS_ERROR = new BaseResult(400, 'params error');
  static NOT_FOUND = new BaseResult(404, 'not found');
}

module.exports = BaseResult;